﻿using System.Collections.ObjectModel;

namespace PluginRegistrationTool
{
    /// <summary>
    /// The Assembly Registration Class.
    /// </summary>
    public class AssemblyRegistration
    {
        /// <summary>
        /// XRM Server Details Property.
        /// </summary>
        private XrmServerDetails _xrmServerDetails;

        /// <summary>
        /// XRM Server Details Property.
        /// </summary>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xrm")]
        public XrmServerDetails XrmServerDetails
        {
            get
            {
                return _xrmServerDetails;
            }
            set
            {
                _xrmServerDetails = value;
            }
        }

        /// <summary>
        /// Property containing a Collection of Registration Objects.
        /// </summary>
        private Collection<Registration> _registrations = new System.Collections.ObjectModel.Collection<Registration>();

        /// <summary>
        /// Property containing a Collection of Registration Objects.
        /// </summary>
        public Collection<Registration> Registrations
        {
            get
            {
                return _registrations;
            }
        }
    }
}
